#include <stdio.h>
#include <string.h>

int main(int argc, char *argv[])
{
	char s1[512], s2[512];
	int a1[512], a2[512], a3[512];
	int i, w, len1, len2, len;

	for (i=0; i<512; i++) {
		a1[i] = 0;
		a2[i] = 0;
		a3[i] = 0;
	}

	scanf("%s", s1);
	scanf("%s", s2);
	len1 = strlen(s1);
	len2 = strlen(s2);
	len = len1 > len2 ? len1 : len2;

	for (i=len1-1; i>=0; i--) {
		a1[len1-1-i] = s1[i] - 48;
	}

	for (i=len2-1; i>=0; i--) {
		a2[len2-1-i] = s2[i] - 48;
	}

	w = 0;
	for (i=0; i<=len; i++) {
		a3[i] = a1[i] + a2[i] + w;
		w = 0;
		if (a3[i] > 9) {
			w = 1;
			a3[i] %= 10;
		}
	}

	for (i=511; i>=0; i--) {
		if (a3[i] != 0) break;
	}
	for (; i>=0; i--) {
		printf("%d", a3[i]);
	}
	printf("\n");

	return 0;
}
